<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>万达营销流程管理系统</title>
<link href="../second/css/css.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="js/ie6png.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('div,ul,li,a,p,img,body,dl,dt,dd');</script>
<![endif]-->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
var zhi = '';
$(function(){
    $('.get1 tr').each(function(){
	alert($(this).find('td').eq(0).text());
	/* alert($(this).find('td').eq(1).find('input').val());
	alert($(this).find('td').eq(2).find('select').val()); */
	alert($(this).find('td').eq(3).find('input').attr("checked"));
	if($(this).find('td').eq(3).find('input').attr("checked")=="checked"){
		alert('该行被选中');
		zhi+=$(this).find('td').eq(1).find('input').val()+',';
	}
	});
    alert('拿到的值'+zhi);
    document.form1.action="sadas.do?zhi="+zhi;
   /*  window.location = "" */
});

</script>
<div id="apDiv1"></div>
<form action="" name="form1">
	<input type="hidden" name="zhi" id="zhi">
</form>
<table width="100%" class="get1">
	<tr>
		<td>1</td>
		<td style='display: none'><input type='text' value='v1' /></td>
		<td><select><option value='s1'>s1</option>
				<option value='s2'>s2</option></select></td>
		<td><input type="checkbox" name="aaa" checked="checked"></td>
	</tr>
	<tr>
		<td>2</td>
		<td style='display: none'><input type='text' value='v2' /></td>
		<td><select><option value='ss1'>ss1</option>
				<option value='ss2'>ss2</option></select></td>
		<td><input type="checkbox" name="aaa" checked="checked"></td>
	</tr>
</table>
</body>
</html>